package com.example.bookmanager_back.dao;

import com.example.bookmanager_back.entity.dto.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AccountMapper {
    @Select("select count(*) from user where username = #{username} and password = #{password}")
    Account auth(String username, String password);

    @Select("select * from user where username = #{username}")
    Account getAccountByUsername(String username);
}
